package com.cdc.http.http1;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2018/3/24.
 */

public class Response {
    private int responseCode;
    private byte[] result;
    private Exception exception;
    private Request request;

    private Map<String,List<String>> responseHeaders;

     Response(int responseCode, Map<String,List<String>> responseHeaders,byte[] result, Exception exception, Request request) {
        this.responseCode = responseCode;
        this.responseHeaders=responseHeaders;
        this.result = result;
        this.exception = exception;
        this.request = request;
    }

    public Map<String, List<String>> getResponseHeaders() {
        return responseHeaders;
    }

    public Request getRequest() {
        return request;
    }



    public int getResponseCode() {
        return responseCode;
    }


    public byte[] getResult() {
        return result;
    }

    public void setResult(byte[] result) {
        this.result = result;
    }

    public Exception getException() {
        return exception;
    }

     void setException(Exception exception) {
        this.exception = exception;
    }
}
